﻿@page
@model BookLink.Pages.Books.DetailsModel

@{
    ViewData["Title"] = "图书详情";
}

<div class="col-8 offset-2">
    <div class="card">
        <h5 class="card-header">@Html.DisplayFor(model => model.Book.Title)</h5>
        <div class="card-body">
            <div class="row">
                <div class="col-6 text-end">
                    <img src="@Model.Book.ImageUrl" style="width:220px;height:280px" />
                </div>
                <div class="col-6">
                    <dl class="row">
                        <dt class="col-sm-3">
                            @Html.DisplayNameFor(model => model.Book.Title)
                        </dt>
                        <dd class="col-sm-9 ">
                            @Html.DisplayFor(model => model.Book.Title)
                        </dd>
                        <dt class="col-sm-3">
                            @Html.DisplayNameFor(model => model.Book.ReleaseDate)
                        </dt>
                        <dd class="col-sm-9">
                            @Html.DisplayFor(model => model.Book.ReleaseDate)
                        </dd>
                        <dt class="col-sm-3">
                            @Html.DisplayNameFor(model => model.Book.Author)
                        </dt>
                        <dd class="col-sm-9">
                            @Html.DisplayFor(model => model.Book.Author)
                        </dd>
                        <dt class="col-sm-3">
                            @Html.DisplayNameFor(model => model.Book.Genre)
                        </dt>
                        <dd class="col-sm-9">
                            @Html.DisplayFor(model => model.Book.Genre)
                        </dd>
                      
                        <dt class="col-sm-3">
                            @Html.DisplayNameFor(model => model.Book.DownloadCount)
                        </dt>
                        <dd class="col-sm-9">
                            @Html.DisplayFor(model => model.Book.DownloadCount)
                        </dd>
                     
                    </dl>
                </div>
            </div>
           <div class="text-end">
                <a href="@Model.Book.Dowloadlink" class="btn btn-primary">阿里云下载</a>
           </div>
        </div>
    </div>
</div>